package com.be.beadmin.product.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Table(name="T_OM_GuideBookFileInfo")
@Getter
@Setter
public class GuideBookFileInfo extends BaseEntity {

    // 文件相关字段

    // bucketname : guidebookfile
    @Column(name = "bucketName",columnDefinition = "VARCHAR(255) COMMENT 'MinIO中的bucketName' ")
    private String bucketName;

    @Column(name = "batchProductId",columnDefinition = "VARCHAR(50) COMMENT '批次柜体id' ")
    private String batchProductId;

    @Column(name = "FileUrl",columnDefinition = "text COMMENT '文件链接' ")
    private String fileUrl;

    @Column(name = "GuideFileCode",columnDefinition = "VARCHAR(50) COMMENT '文件编码'")
    private String guideFileCode;

    @Column(name = "GuideFileName",columnDefinition = "VARCHAR(255) COMMENT '文件名称'")
    private String guideFileName;

    @Column(name = "UploaderId",columnDefinition = "VARCHAR(50) COMMENT '上传人id' ")
    private String uploaderId;

    @Column(name = "UploaderName",columnDefinition = "VARCHAR(50) COMMENT '上传人' ")
    private String uploaderName;

    @Column(name = "UploadTime",columnDefinition = "datetime COMMENT '上传时间' ")
    private Date uploadTime;

    @Column(name = "Instruction",columnDefinition = "VARCHAR(255) COMMENT '指导书说明' ")
    private String instruction;

}
